package com.scs.application.modules.wm.service;

import com.scs.application.core.query.QueryContext;
import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.wm.entity.DistItem;
import com.scs.application.modules.wm.entity.DistItemPda;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 科室请领单明细 Service
 * </p>
 */

public interface DistItemService extends IBaseService<DistItem> {


    /**
     * 取消拣货
     * @param distId
     */
    void cancelPick(String distId);

    /**
     * 拣货完成
     * @param distId
     */
    void endPick(String distId);

    Double getpackageRate(String applyItemId);

    List<DistItemPda> findDistItemPda(QueryContext context);

    @Transactional(rollbackFor = Exception.class)
    void addDtlBatch(List<DistItem> entityList);
}
